.post {
    width: 98%;
}

.post .title {
    text-align: center;
    font-size: 24px;
    font-weight: bolder;
    height: 2em;
    line-height: 2em;
    border-bottom: 2px double skyblue;
}

.post .date {
    text-align: right;
    margin-right: 2em;
    height: 1.5em;
    vertical-align: baseline;
}
.post .abstract {
    text-align:justify!important;
    width: 90%;
    text-indent: unset;
    margin: auto;
    padding-top: 1em;
    padding-bottom: 1.5em;
}

.post .content {
    margin-left: 1em;
    margin-right: 1em;
}

.work-area article {
    counter-reset: Level1;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.work-area article H1 {
    counter-reset: Level2;
    margin-top: 1em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid cadetblue;
}

.work-area article H2 {
    counter-reset: Level3;
}

.work-area article H3 {
    counter-reset: Level4;
}

.work-area article H4 {
    counter-reset: Level5;
}

.work-area article H5 {
    counter-reset: Level6;
}

.work-area article H1::before {
    counter-increment: Level1;
    content: counter(Level1)" ";
}

.work-area article H2::before {
    counter-increment: Level2;
    content: counter(Level1)"."counter(Level2)" ";
}

.work-area article H3::before {
    counter-increment: Level3;
    content: counter(Level1)"."counter(Level2)"."counter(Level3)" ";
}

.work-area article H4::before {
    counter-increment: Level4;
    content: counter(Level1)"."counter(Level2)"."counter(Level3)"."counter(Level4)" ";
}

.work-area article H5::before {
    counter-increment: Level5;
    content: counter(Level5)") ";
}

.work-area article H6::before {
    counter-increment: Level6;
    content: counter(Level6)"] ";
}

.work-area article ol li * {
    text-indent: unset;
}

.work-area article ul li * {
    margin-left: unset;
}

.work-area article p {
    text-indent: 2rem;
    text-align:justify!important;
}

.work-area article pre {
    margin-left: 2rem;
    border: 2px solid silver;
    background-color: #30303030;
    overflow: scroll;
}

.work-area article H1[id="参考文献"]::before {
    content: unset;
}

#toc {
    position: absolute;
    background-color: whitesmoke;
    color: black;
    margin-left: 1rem;
    z-index: 999;
    top: 60px;
    right: 8px;
    height: 32px;
}

#toc:hover {
    box-shadow: 4px 4px 4px #aaaaaa;
    padding-left: 1rem;
    padding-top: 0.4rem;
    height: unset;
}

#toc a {
    color: black;
}
#toc a:hover {
    color: #0a7ad9;
}

#toc ul {
    list-style: none;
    counter-reset: section;
    margin-bottom: 4px;
    margin-right: 4px;
}
#toc li {
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 4px;
}
#toc li::before {
    counter-increment: section;
    content: counters(section, ".")" ";
    color: #0a7ad9;
}

#toc>ul ul {
    margin-left: 1rem;
}

#toc:hover #markdown-toc {
    display: block;
}

#toc:hover .toc-title {
    left: -0.6rem;
    border: unset;
    padding: 8px;
}

.toc-title {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 1px solid skyblue;
    border-radius: 4px;
}

#markdown-toc {
    display: none;
}

#markdown-toc::before {
    content: "目录";
    position: absolute;
    top: 0.6rem;
    left: 3rem;
    font-size: 18px;
    font-weight: bold;
}